package com.zjy.service;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.zjy.dao.EmployeeMapper;
import com.zjy.pojo.Employee;
@Service
public class EmployeeServiceImpl implements EmployeeService{
@Autowired
EmployeeMapper employeeMapper;

	public EmployeeMapper getEmployeeMapper() {
	return employeeMapper;
}

public void setEmployeeMapper(EmployeeMapper employeeMapper) {
	this.employeeMapper = employeeMapper;
}

	public List<Employee> getAll() {
		// TODO Auto-generated method stub
		return employeeMapper.selectByExampleWithDept(null);
	}

	public void saveEmp(Employee employee) {
		employeeMapper.insertSelective(employee);
	}

}
